*{
    margin: 0;
    padding: 0;
}
body{
    height: 100vh;
    background-color: #bdc3c7;
}
.middle{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
}
.box{
    width: 300px;
    height: 500px;
    position: relative;
}
.box h2{
    font-size: 40px;
    margin-bottom: 10px;
}
.front,.back{
    width: 100%;
    height: 100%;
    position: absolute;
    background: url('bj.jpg');
    background-size: cover;
    backface-visibility: hidden;
    box-shadow: 0 0 10px #2c3e50;
    transition: .8s;
    -webkit-transition: .8s;
}
.front{
    transform: perspective(800px) rotateY(0deg);
    -webkit-transform: perspective(800px) rotateY(0deg);
}
.back{
    -webkit-transform: perspective(800px) rotateY(180deg);
    transform: perspective(800px) rotateY(180deg);
}
.back .contact-into a{
    display: inline-flex;
    justify-content: center;
    align-content: center;
    flex-direction: column;
    text-align: center;
    width: 40px;
    height: 40px;
    font-size: 20px;
    text-decoration: none;
    color: #2c3e50;
    border-radius: 50%;
}
.back .contact-into a:hover{
    color: white;
    background-color: #2c3e50;
}
.box:hover .front{
    -webkit-transform: perspective(800px) rotateY(-180deg);
    transform: perspective(800px) rotateY(-180deg);
}
.box:hover .back{
    -webkit-transform: perspective(800px) rotateY(0deg);
    transform: perspective(800px) rotateY(0deg);
}